package com.anket.person.bo.impl;
 
import com.anket.address.model.Address;
import com.anket.option.model.Option;
import com.anket.person.bo.PersonBo;
import com.anket.person.dao.PersonDao;
import com.anket.person.model.Person;
import com.anket.poll.model.Poll;

 
public class PersonBoImpl  implements PersonBo{
	
	PersonDao personDao;
	
	public void setPersonDao(PersonDao personDao) {
		this.personDao = personDao;
	}
	
	

	public void addPerson(Person person) {
		// TODO Auto-generated method stub
		personDao.addPerson(person);
		
	}

	public void deletePerson(Person person) {
		// TODO Auto-generated method stub
		personDao.deletePerson(person);
		
	}

	public void updatePerson(Person person) {
		// TODO Auto-generated method stub
		personDao.updatePerson(person);
		
	}




	public Person getPersonById(Integer id) {
		return personDao.getPersonById(id);
	}



	public boolean isPersonAdmin(Person person) {
		// TODO Auto-generated method stub
		return false;
	}



	public Person isloginTrue(String email, String password) {
		
		return personDao.isloginTrue(email, password);
		
	}



	public void addPoll(Poll poll) {
		personDao.addPoll(poll);
		
	}



	public void addOption(Option option) {
		personDao.addOption(option);
		
	}



	public Address prepareAddress(Address address) {
		return personDao.prepareAddress(address);
	}
 

}